package cz.cvut.fit.crhonjar.mi.paa.thames.exception;

/**
 * 
 * @author Jarec
 * 
 */
public class ThamesException extends Exception {
	private static final long serialVersionUID = 1L;

	private final ExceptionCode code;

	/**
	 * @param code
	 * @param message
	 */
	public ThamesException(final ExceptionCode code, final String message) {
		super(message);
		this.code = code;
	}

	/**
	 * @return the code
	 */
	public ExceptionCode getCode() {
		return this.code;
	}

}
